 <?php
 	function main_header($nr)
        {
  	      
			echo "<html>";
			echo "<head>";
			echo "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" />";
			echo "<title>ANC</title>";
			echo "<link href=\"style.css\" rel=\"stylesheet\" type=\"text/css\" />";
			echo "<meta name=\"description\" content=\"ANC\" />";
			echo "<meta name=\"keywords\" content=\"anc\" />";
			echo "<meta name=\"copyright\" content=\"anc\" />";
			echo "</head>";
			echo "<body LEFTMARGIN=0 TOPMARGIN=0 MARGINWIDTH=\"0\" MARGINHEIGHT=\"0\">";
			echo "<table height=\"100%\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\">";
			echo "<td width=\"50%\" background=\"images/bg.jpg\"></td>";
			echo "<td background=\"images/bg_lft.jpg\" style=\"padding-left:28\"></td>";
			echo "<td bgcolor=\"#FFFFFF\" valign=\"top\" height=\"100%\">";
			
			echo "<table cellpadding=\"0\" cellspacing=\"0\" border=\"0\" width=\"1000\" height=\"100%\">";
					echo "<tr>";
						echo "<td colspan=\"2\"><center><img src=\"images/anc.jpg\" border=\"0\" alt=\"\"><center></td>";
					echo "</tr>";
					echo "<tr>";
						echo "<td colspan=\"2\" class=\"header\" height=\"45\" valign=\"top\">";
							//include "includes".DIRECTORY_SEPARATOR."login.php";
						echo "</td>";
					echo "</tr>";
		  
					echo "<tr>";
	    	    		echo "<td colspan=\"2\" height=\"40\" valign=\"top\">";		  
						  echo "<div id=\"menu\">";
						  
							if($nr == 1)
								echo "<a href=\"index.php\" id=\"on\">Index</a>";
									else
								echo "<a href=\"index.php\">Index</a>";
							/*								
							if( ! empty($_SESSION['user']) )
							{	*/
							if($nr == 2)
								echo "<a href=\"index_noutati.php\" id=\"on\">Noutati</a>";
									else
								echo "<a href=\"index_noutati.php\">Noutati</a>";	
								
							if($nr == 3)
								echo "<a href=\"index_furnizori.php\" id=\"on\">Furnizori</a>";			
									else
								echo "<a href=\"index_furnizori.php\">Furnizori</a>";
								
							if($nr == 4)
								echo "<a href=\"index_programe.php\" id=\"on\">Programe</a>";			
									else
								echo "<a href=\"index_programe.php\">Programe</a>";
							if($nr == 5)
								echo "<a href=\"index_sesiuni.php\" id=\"on\">Sesiuni</a>";			
									else
								echo "<a href=\"index_sesiuni.php\">Sesiuni</a>";					   	
						//	}
								
				         echo "</div>";
						 
						 //echo "<a href=\"index.php\"><img style=\"padding-left:20;padding-right:30;float:right;border=1px\" src=\"images/login_icon.png\" alt=\"\"/></a>";

						echo "</td>";
					echo "</tr>";	
	}
	?>
	